package com.zretc.emptraining.service;

import java.util.List;

import com.zretc.emptraining.dbtools.PageData;
import com.zretc.emptraining.entity.Teach;
import com.zretc.emptraining.entity.TeacherEva;


public interface TeacherEvaService {
	/**
	 * 增加教员评价
	 * @param teacherEva
	 * @return
	 */
	public boolean addTeacherEva(TeacherEva teacherEva);
	/**
	 * 查询所有
	 * @return
	 */
	public List<TeacherEva> getTeacherEvaAll();
	
	/**
	 * 分页查询 
	 * @param page
	 * @param pageSize
	 * @param courseName
	 * @return
	 */
	// 课程名模糊查询
	public PageData<TeacherEva> getTeacherEvaByCourseName(int page,int pageSize,String courseName);
	// 教员名模糊查询
	public PageData<TeacherEva> getTeacherEvaByTeacherName(int page,int pageSize,String teacherName);
	// 名称模糊查询
	public PageData<TeacherEva> getTeacherEvaByPage(int page,int pageSize,String empNoQuery);
	/**
	 * 判断是否第一次评价
	 * @param empNo
	 * @param cpNo
	 * @return
	 */
	public List<TeacherEva> doTeacherEva(int empNo,int cpNo);
	/**
	 * 展示教员评价
	 * @param page
	 * @param pageSize
	 * @return
	 */
	public PageData<Teach> getTeacherEvaShow(int page, int pageSize);
}
